<template>
    <div class="container" :style="'min-height: '+$docHeight+'px'">
        <div v-if="showCont&&!showTimeOut">
            <div class="bannerCont">
                <div class="bannerLeft">
                    <div class="bannerName">创建就诊卡</div>
                    <div class="bannerMain">
                        <div class="bannerDesItem">就诊档案</div>
                        <div class="bannerDesItem">更便捷预约挂号</div>
                    </div>
                    <!-- <img class="bannerLeftImg" src="/img/lifeIcon2.png" /> -->
                </div>
                <img class="bannerImg" src="/img/book2.png" />
            </div>
            <div class="formCont" :key="index" v-for="(item,index) in 4">
                <div class="typeTagWai">
                  <div class="typeTag">本人</div>
                </div>
                <div class="formTitle">
                    <div>吴欢(男)</div>
                </div>
                <div class="formInput">
                    <div class="inputName">联系电话：</div>
                    <div class="authVal">18483613963</div>
                </div>
                <div class="formInput">
                    <div class="inputName">出生日期：</div>
                    <div class="authVal">2024-06-31 11:30</div>
                </div>
                <div class="formCtrl">
                    <div class="ctrlItem">编辑</div>
                    <div class="ctrlItem delBtn">删除</div>
                </div>
            </div>
            <div class="addBtn" @click="addFn">添加就诊卡</div>
        </div>
    </div>
</template>
<script>
    export default {
        components: {},
        name:'',
        data() {
            return {
                showTimeOut: false,
                showCont:false,
            }
        },
        props: {},
        setup(){},
        methods:{
            addFn(){
                this.$router.push({path:'/addCar'})
            }
        },
        mounted(){},
        created() {
            this.showCont = true
        },
    }
</script>
<style scoped lang="less">
.container{
    box-sizing: border-box;
    padding-bottom: 1.25rem;
    background-color: #ebf9f3;
    .bannerCont{
        width: 100%;
        // height: 20rem;
        background-image: linear-gradient(to bottom, #5cc78e,#ebf9f3);
        color: #fff;
        display: flex;
        justify-content: space-between;
        padding: 2rem 4% 0rem;
        box-sizing: border-box;
        .bannerImg{
            flex: 1;
            width: 1rem;
            position: relative;
            top: -1rem;
        }
        .bannerLeft{
            width: 12rem;
            position: relative;
            .bannerName{
                font-size: 1.2rem;
                font-weight: bold;
                position: relative;
                top: -0.7rem;
            }
            .bannerLeftImg{
                width: 4rem;
            }
            .bannerMain{
                position: relative;
                font-size: 0.7rem;
                .bannerDesItem{
                    margin-bottom: 0.25rem;
                }
            }
        }
    }
    .formCont{
        background-color: #fff;
        width: 92%;
        margin: 0 auto 0.75rem;
        position: relative;
        overflow: hidden;
        padding: 1rem 4%;
        border-radius: 0.25rem;
        box-sizing: border-box;
        .typeTagWai{
            font-size:0.6rem;
            height: 1.3rem;
            line-height: 1.3rem;
            position: absolute;
            top:0.5rem;
            right: -1.5rem;
            background-color: #5cc78e;
            width: 5rem;
            text-align: center;
            transform: rotate(45deg);
            color: white;
        }
        .formTitle{
            font-weight: bold;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }
        .formInput{
            display: flex;
            align-items: center;
            margin-bottom: 0.25rem;
            color: #666;
            // font-size: 0.6rem;
        }
        .formCtrl{
            margin-top: 0.75rem;
            display: flex;
            justify-content: flex-end;
            .ctrlItem{
                padding: 0.35rem 1.5rem;
                background-color: #fff;
                color: #5cc78e;
                margin-left: 0.75rem;
                border-radius: 0.25rem;
                font-size: 0.6rem;
                border: 1px solid #5cc78e;
            }
            .delBtn{
                background-color: #5cc78e;
                color: #fff;
            }
        }
    }
    .addBtn{
        width: 92%;
        margin: 1.25rem auto 0;
        background-color: #fff;
        color: #5cc78e;
        padding: 0.75rem 0;
        border-radius: 0.25rem;
        text-align: center;
    }
}
</style>